<?php

namespace App\Models\Kms\App;

use App\Models\BaseModel;
use App\Models\Traits\KfSoftDeletes;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Carbon;

class ClientsVersionModel extends BaseModel
{
    use KfSoftDeletes;

    protected $table = "kms_clients_version";

    public $timestamps = false;

    /**
     * @param mixed $value
     * @return false|Carbon|mixed
     */
    protected function asDateTime($value)
    {
        return $value;
    }

    /**
     * @return HasMany
     */
    public function versionReleaseHistoryRel(): HasMany
    {
        return $this->hasMany(ClientsVersionReleaseHistoryModel::class, "versionId", "id");
    }
}
